﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<ComeSeeThis_MVC2.Models.Feedback>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Feedback
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Feedback</h2>
    <table>
        <tr>
            <th>
            </th>
            <th>
                Date Submitted
            </th>
            <th>
                Submitted By
            </th>
            <th>
                Email
            </th>
            <th>
                FeedbackRead
            </th>
            <th>Page</th>
        </tr>
        <% if (Model.Count() == 0) %>
        <tr>
            <td colspan="5">
                No new Feedback
            </td>
        </tr>
        <%       foreach (var item in Model)
                 {%>
        <tr>
            <td>
                <%:Html.ActionLink("Details", "FeedbackDetails", new {id = item.id})%>
                |
                <%:Html.ActionLink("Delete", "FeedbackDelete", new {id = item.id})%>
            </td>
            <td>
                <%:String.Format("{0:g}", item.DateSubmitted)%>
            </td>
            <td>
                <%:item.SubmittedBy%>
            </td>
            <td>
                <%:item.Email%>
            </td>
            <td>
                <%:item.FeedbackRead%>
            </td>
            <td>
                <%:item.Page%>
            </td>
        </tr>
        <%
            }%>
    </table>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="HeaderContent" runat="server">
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="BodyTagContent" runat="server">
</asp:Content>
